﻿




using System.Collections.Generic;

namespace Hotpot.Infrastructure
{
    public class ExtendedPropertyStoreComparer : IEqualityComparer<IExtendedPropertyStore>
    {
        #region IEqualityComparer<IExtendedPropertyStore> Members

        public bool Equals(IExtendedPropertyStore x, IExtendedPropertyStore y)
        {
            return x.ScopeType == y.ScopeType && string.Compare(x.ScopeKey, y.ScopeKey, true) == 0;
        }

        public int GetHashCode(IExtendedPropertyStore obj)
        {
            return obj.GetHashCode();
        }

        #endregion
    }
}
